<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>XYChart.addBoxWhiskerLayer2</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="XYChart.htm">XYChart</a>.<wbr>addBoxWhiskerLayer2</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public BoxWhiskerLayer addBoxWhiskerLayer2(double[] boxTop, double[] boxBottom [, double[] maxData [, double[] minData [, double[] midData [, int[] fillColors [, double whiskerBrightness [, String[] names ]]]]]])
</div>
<p class="heading2">Description</p>
<div class="content">
Adds a multi-color box-whisker layer to the XYChart, and specify the data sets to use for drawing the layer.<br><br>
This method is similar to <a href="XYChart.addBoxWhiskerLayer.htm">XYChart.addBoxWhiskerLayer</a>, except that the layer will be added in multi-color mode. Please refer to <a href="XYChart.addBoxWhiskerLayer.htm">XYChart.addBoxWhiskerLayer</a> on basic information of what is a box-whisker layer.<br><br>
In multi-color mode, the boxes of a BoxWhiskerLayer can have different fill colors. For the whisker, instead of specifying a single whisker color for all boxes, ChartDirector computes the whisker colors by darkening or brightening the corresponding fill colors using a configurable brightness factor.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>boxTop</td><td>(Mandatory)</td><td>An array of numbers representing the top edge of the box.</td></tr><tr><td>boxBottom</td><td>(Mandatory)</td><td>An array of numbers representing the bottom edge of the box.</td></tr><tr><td>maxData</td><td>[Empty_Array]</td><td>An array of numbers representing the maximum value mark lines.</td></tr><tr><td>minData</td><td>[Empty_Array]</td><td>An array of numbers representing the minimum value mark lines.</td></tr><tr><td>midData</td><td>[Empty_Array]</td><td>An array of numbers representing the middle value mark lines.</td></tr><tr><td>fillColors</td><td>[Empty_Array]</td><td>An array of colors to be used as the fill color of the boxes. If there are insufficient colors in the array for the boxes, the remaining boxes will have their colors automatically selected from the palette.</td></tr><tr><td>whiskerBrightness</td><td>0.5</td><td>The brightness factor for whisker color. A value less than 1 means darkening. A value larger than 1 means brightening. A zero value means black.</td></tr><tr><td>names</td><td>[Empty_Array]</td><td>An array of names for the boxes to be used in the legend box, if one is configured for the chart.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
A <a href="BoxWhiskerLayer.htm">BoxWhiskerLayer</a> object representing the box-whisker layer created.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
